import * as client from './client'
import urlConfig from './urlConfig'
///获取订单详情
/**
 * 请求参数
 */
export class OrderDetailRst {
    
    //订单唯一ID
    public salesOrderUID: string;
}
/**
 * 返回数据
 */
export class OrderDetailRpn {

    //1-成功 0-失败
    public isSuccess: number;
    //状态码
    public code: string;
    //描述
    public description: string;
    //返回数据
    public resData: {
        salesOrderCode: string
    };
}

/**
 * 获取数据
 * @param rst 参数
 */
export async function exec(rst: OrderDetailRst,userInfo:any) {
    const data = await client.exec(urlConfig.orderDetail, rst,userInfo);
    return JSON.parse(data) as OrderDetailRpn;
}
